package io.geekidea.boot.shop.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 *
 * @author geekidea
 * @since 2024-10-27
 */
@Data
@TableName("order_detail")
@Schema(description = "")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    private Integer orderId;

    private Integer categoryId;

    private String categoryName;

    private Integer goodsId;

    private String goodsName;

    private String goodsDesc;

    private String goodsImage;

    private BigDecimal goodsPrice;

    private BigDecimal totalOnePrice;

    private String specKey;

    private String specCheck;

    private BigDecimal amount;

    private Integer count;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Date updatedTime;

}

